package com.example.shixun.service.impl;

import com.example.shixun.dao.FollowerDao;
import com.example.shixun.pojo.Follower;
import com.example.shixun.service.FollowerService;

import javax.annotation.Resource;

/**
 * @Author XDW
 * @Version 1.0
 * @date 2023/6/24 16:55
 */
public class FollowerServiceImpl implements FollowerService {
    @Resource
    private FollowerDao followerDao;
    @Override
    public int saveFollower(Follower follower) {
        return followerDao.saveFollower(follower);
    }

    @Override
    public int deleteFollowerById(int id) {
        return followerDao.deleteFollowerById(id);
    }

    @Override
    public Follower selectFollowerById(int id) {
        return followerDao.selectFollowerById(id);
    }

    @Override
    public int updateFollower(Follower follower) {
        return followerDao.updateFollower(follower);
    }
}
